#include <stdio.h>
#include <string.h>

int main(int argc, const char *argv[])
{
	FILE *fp=fopen("./1.txt","r+");

	char writebuf[128];
	char readbuf[128];
	scanf("%s",writebuf);
	fwrite(writebuf,strlen(writebuf),1,fp);
	fseek(fp,SEEK_SET,0);

	int len=0;
	fgets(readbuf,128,fp);
/*	
	for(int i=0;i<len;i++)
	{
		printf("%c",readbuf[i]);
	}
	*/
	printf("%s\n",readbuf);
	return 0;
}
